#
# Be sure to run `pod lib lint MZTool.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MZTool'
  s.version          = '1.0.0'
  s.summary          = 'A short description of MZTool.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
  自用工具类
                       DESC

  s.homepage         = 'https://gitee.com/IOS_zy/mztool.git'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'ayi' => 'guibizzy@163.com' }
  s.source           = { :git => 'https://gitee.com/IOS_zy/mztool.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '13.0'
  s.swift_versions = ['5.0', '5.1', '5.2', '5.3']
  
  s.source_files = 'MZTool/Classes/MZ/**/*'
  
#  s.subspec 'Page' do |sub|
#    sub.source_files = 'MZTool/Classes/PAGE/**/*'
#  end
  
  s.subspec 'Mediator' do |sub|
    sub.source_files = 'MZTool/Classes/MZMediator/**/*'
  end

  s.subspec 'MZAF' do |sub|
    sub.source_files = ['MZTool/Classes/AF/**/*','MZTool/Classes/MZ/MZAtomic.swift']
    sub.dependency 'Alamofire', '~> 5.7.0'
  end
  
  s.subspec 'Tool' do |sub|
    sub.source_files = ['MZTool/Classes/MZ/*.swift']
  end
  
  s.subspec 'FullPop' do |sub|
    sub.source_files = ['MZTool/Classes/MZ/MZFullscreenPopGesture.h','MZTool/Classes/MZ/MZFullscreenPopGesture.m']
  end
  
  s.subspec 'MZEmpty' do |sub|
    sub.source_files = ['MZTool/Classes/Empty/**/*.{h,m,mm}']
    sub.resource_bundles = {
      'MZEmpty' => ['MZTool/Classes/Empty/**/*.{png}']
    }
  end
  
#  s.subspec 'Tool' do |s2|
#    s2.source_files = 'MZTool/Classes/MZ/**/*'
#    s2.dependency 'Then'
#  end
  
  
  
  s.static_framework  =  true
  
end
